/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.testis.utils;

import org.apache.activemq.pool.PooledConnectionFactory;

/**
 *
 * @author nurhat
 */
public class AtofPooledConnectionFactory  extends PooledConnectionFactory{
     private static  AtofPooledConnectionFactory m_connectionFactory=null;
     private AtofPooledConnectionFactory(){
     }
     public static PooledConnectionFactory createInstance()
     {
          if(m_connectionFactory==null){
              m_connectionFactory=new AtofPooledConnectionFactory();
              m_connectionFactory.setMaxConnections(5);
          }
          return m_connectionFactory;
     }
}
